package com.chj.comp.service.demo2.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author cuihui
 * @since 2022-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("demo2_anjuke_xian")
@ApiModel(value="Demo2AnjukeXian对象", description="")
public class Demo2AnjukeXian extends Model<Demo2AnjukeXian> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "tid", type = IdType.AUTO)
    private Long tid;

    @TableField("name")
    private String name;

    @TableField("address")
    private String address;

    @TableField("address_desc")
    private String addressDesc;

    @TableField("type")
    private String type;

    @TableField("area")
    private String area;

    @TableField("price")
    private Long price;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.tid;
    }

}
